package eg12_2;

import eg12_1.MyThread;

public class main {
    public static void main(String[] args) {
        System.out.println("主线程开始运行");
        myrunable run1 =new myrunable();
        myrunable run2 = new myrunable();
        MyThread th1 = new MyThread();
        th1.setName("Thread1");
        MyThread th2 = new MyThread();
        th2.setName("Thread2");
        th1.start();
        th2.start();
        System.out.println("主线程结束");
    }
}

